package 里氏替换原则;

/**
 * @ClassNameBird
 * @Description
 * @Author
 * @Date2021/11/11 20:08
 **/
public class Bird extends Animal {
    private double flySpeed;

    public void setFlySpeed(double flySpeed){
        this.flySpeed = flySpeed;
    }

    public double getFlyTime(double distance){
        return distance/this.flySpeed;
    }
}
